﻿using System;
using IrelandAlt.ORNetTwitt.Resources;
using OpenRasta.Web;

namespace IrelandAlt.ORNetTwitt.Handlers
{
    public class LoginHandler
    {
        protected IUserSecurity UserSecurityContext;

        public LoginHandler(ICommunicationContext communicationContext)
        {
            UserSecurityContext = HandlerHelper.GetUserSecurityContext(communicationContext);
        }

        public OperationResult Get()
        {
            return new OperationResult.OK(new LoginUiResource(UserSecurityContext));
        }
    }
}
